export const listColumns = [
  [{
    width: '50',
    type: "index",
    label: '序号',
  }, {
    'min-width': '180',
    prop: 'originalFactoryName',
    label: '原厂',
    'show-overflow-tooltip': true
  }, {
    'min-width': '180',
    prop: 'productLineName',
    label: '产品线',
    'show-overflow-tooltip': true
  }, {
    'min-width': '180',
    prop: 'newspaperEndDate',
    label: '报台截止日期',
    'show-overflow-tooltip': true
  }, {
    'min-width': '180',
    prop: 'applyCompany',
    label: '适用经销商',
    'show-overflow-tooltip': true
  }, {
    width: '110',
    prop: 'operation',
    label: '操作',
    fixed: 'right'
  }],
  [{
    width: '50',
    type: "index",
    label: '序号',
  }, {
    'min-width': '180',
    prop: 'originalFactoryName',
    label: '原厂',
    'show-overflow-tooltip': true
  }, {
    // 'min-width': '180',
    prop: 'productLineName',
    label: '产品线',
    'show-overflow-tooltip': true
  }, {
    // 'min-width': '180',
    prop: 'applyCompany',
    label: '适用经销商',
    'show-overflow-tooltip': true,
    formatter: row => {
      let companyArr = row.applyCompany.split(';') || []
      if (companyArr && companyArr.length > 32) {
        companyArr = companyArr.slice(0, 32)
        companyArr.push('......')
      }
      return companyArr.join('；')
    }
  }, {
    'width': '120',
    prop: 'newspaperEndDate',
    label: '报台截止日期',
    'show-overflow-tooltip': true
  }, {
    // 'width': '200',
    prop: 'applyCompany',
    label: '有效期',
    'show-overflow-tooltip': true,
    formatter: row => {
      console.log(row, 'Row')
      return row.startValidate ? row.startValidate + '-' + row.endValidate : ''
    }
  }, {
    width: '110',
    prop: 'operation',
    label: '操作',
    fixed: 'right'
  }]
]
export const tabArr = [{
  lab: '固定日期',
  val: 1,
  badge: {
    value: null
  }
}, {
  lab: '临时日期',
  val: 2,
  badge: {
    value: null
  }
}]
